package cn.jiyun.service;


import cn.jiyun.entity.CourseDistory;
import cn.jiyun.entity.DistoryVO;
import cn.jiyun.entity.ResultClass;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("day07distory")
public interface DirectoryFeginService {

    @GetMapping("/distory/findDitectoryList")
    List<DistoryVO> findDitectoryList(@RequestParam("cid") Integer cid);

    @GetMapping("/distory/findTowDitectoryNum")
    Integer findTowDitectoryNum(@RequestParam("cid") Integer cid);

    @GetMapping("/distory/findUserOverDirectory")
    List<CourseDistory> findOverDirectoryNum(@RequestParam("cid") Integer cid, @RequestParam("mid") Integer uid);

    @GetMapping("/distory/xueDirectory")
    ResultClass xueDirectory(@RequestParam("cid") Integer cid, @RequestParam("mid") Integer uid, @RequestParam("did") Integer did);
}
